﻿// (c) Copyright Cory Plotts.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.

using System;
using System.Runtime.InteropServices;
using ManagedInjector;

namespace ManagedInjectorLauncher
{
	class Program
	{
		static void Main(string[] args)
		{
			try
			{
				var windowHandle = (IntPtr)Int64.Parse(args[0]);
				var assemblyName = args[1];
				var className = args[2];
				var methodName = args[3];

				Injector.Launch(windowHandle, assemblyName, className, methodName);
			}
			catch (SEHException)
			{
			}
		}
	}
}
